package main

import (
	"fmt"
	"os"
)

func main() {
	f, e := os.Open("c:/a.txt")
	if e != nil {
		fmt.Println(e)
	}
	defer f.Close()
	buffer := make([]byte, 1024*2)
	n, e := f.Read(buffer)
	if e != nil {
		fmt.Println(e)
	}
	fmt.Println(string(buffer[:n]))
	fmt.Println(n)

}
